import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/home.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
    
  },
  {
    path: '/sy',
    name: 'sy',
    component: () => import( '../views/sy.vue')
  },
  {
    path: '/fen',
    name: 'fen',
    component: () => import( '../views/fen.vue')
  },
  {
    path: '/go',
    name: 'go',
    component: () => import( '../views/go.vue')
  },
  {
    path: '/wo',
    name: 'wo',
    component: () => import( '../views/wo.vue')
  },
  {
    path: '/OPPO',
    name: 'OPPO',
    component: () => import( '../views/OPPO.vue')
  },

  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
